package exceptions;

/**
 * Encapsulates any exception in the output stream
 */
public class WriteStreamException extends Exception { 
    private String message; 
/**
 * Creating new object via message to be stored
 * @param message - is an error message of current excpetion 
 */
    public WriteStreamException(String message){ 
        this.message = message;
    } 
    @Override
    public String getMessage(){
        return "WriteStreamException: " + message; 
    } 
} 
